package com.tuanzi.loan.business.service.receipt.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.entity.receipt.statistics.ReceiptOrderStatistics;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.receipt.statistics.ReceiptOrderStatisticsRequest;
import com.tuanzi.loan.vo.response.receipt.statistics.ReceiptOrderStatisticsResponse;

import java.util.Date;
import java.util.List;

/**
 * @author Ray 2017/09/21
 */
public interface ReceiptOrderStatisticsService extends CommonService<ReceiptOrderStatistics, Long> {

	Page<ReceiptOrderStatisticsResponse> list(PageSearcher<ReceiptOrderStatisticsRequest> pageSearcher);


	/**
	 *删除数据库中时间相同的数据，再进行保存操作
	 * @param receiptOrderStatisticsList 具有相同时间的统计列表
	 */
	void saveByDate(List<ReceiptOrderStatistics> receiptOrderStatisticsList);


	List<ReceiptOrderStatistics> getReceiptStatisticsListByBetweenTime(Date start, Date end);

	void statisticsTodayReceiptOrder();

}
